home *** CD-ROM | disk | FTP | other *** search
-
- I am programming an application between a bsd client (unixware)
- and a winsock server. (ftp winsock.dll version 1.1).
-
- The connection works fine the first time client and server are run but if one
- of the two is stopped and restarted, the re-establised connection doesnt work.
-
- I use select to wait for pending io and recv to read the data, recv returns 0
- when the server end closed (shutdown(s,2); close(s);). This much works as I
- expect. Then I restart the server and it waits for the client to reconnect.
- But after accepting a re-connection from the client, select fires
- (on the newly accepted socket) and recv returns 0 indicating a remote reset
- by the client. This is not what I expect and I dont see a way around it.
-
- Does anybody have any ideas or similar experiences? Are there any sockopts I
- can set or get to control the situation?
-
- Any suggestions welcomed, thanks
-
- /*-----------------------+-------------------------------------------------+
- | | |
- | John Vogelsang | ACSnet: fjv@research.otc.com.au |
- | R & D Contractor | UUCP: {uunet,mcvax}!research.otc.com.au!fjv |
- | Visual Communications | voice: +61 (02) 287 5000 x 3173 |
- | | video: t.b.a. r.s.n. (ask me!) |
- | Telstra | Snail: GPO Box 7000, Sydney 2001, Australia |
- | (OTC Australia) | floor 7, 0xff Elizabeth Street |
- +------------------------+------------------------------------------------*/
-
-